_map_badges

function _map_badges(instance: instance, instance_map: map<text, gtv?>, options: list<option>, mapper: (map<text, gtv?>, map<key_name, gtv?>, list<option>) -> unit)